#include "paywindow.h"
#include "ui_paywindow.h"

void PayWindow::getSignal(QString me, QString pr)
{
    ui->textBrowser->setText(me);
    ui->label_2->setText(pr);
}

PayWindow::PayWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::PayWindow)
{
    ui->setupUi(this);

    QPalette pal = this->palette();
    pal.setBrush(QPalette::Background,QBrush(QPixmap("jiemian.jpg")));
    setPalette(pal);

    QPixmap pic1("pay.jpg");
    pic1 = pic1.scaled(ui->label->size());
    ui->label->setPixmap(pic1);
}

PayWindow::~PayWindow()
{
    delete ui;
}

void PayWindow::on_pushButton_clicked()
{
    QWidget *p = this->parentWidget();
    p->show();
    this->close();
    delete this;
}
